import axios from 'axios'
axios.interceptors.request.use(config => {
  return config
}, error => {
  return Promise.reject(error)
})

// 默认配置
// axios.defaults.baseURL = 'https://vip.gxmini.cn'
axios.defaults.baseURL = process.env.NODE_ENV === 'production' ? 'https://vip.gxmini.cn' : ''
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
axios.defaults.withCredentials = false

export default axios